package com.lg.atp.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.lg.atp.dao.AttachmentDao;
import com.lg.atp.entity.TblAttachment;
import com.lg.atp.service.IAttachmentService;

@Service("iAttachmentService")
public class AttachmentServiceImpl implements IAttachmentService{

	@Autowired
	private AttachmentDao attachmentDao;
	
	@Override
	public TblAttachment selectFileById(Long id) {
		return attachmentDao.selectFileById(id);
	}

	@Override
	public TblAttachment saveFile(TblAttachment file) {
		attachmentDao.saveFile(file);
		return file;
	}

}
